'; print_r($rewrite); echo ''; die('
Report
');}/** * Shortcode Production * @see thau_agglo_production($arg,$arg) */function thau_agglo_prod($attr){ return thau_agglo_production($attr['last'], $attr['new']);}add_shortcode('thau_prod', 'thau_agglo_prod');/** * Fonction permettant de retourner l'ensemble des images du slider + titres */function thau_agglo_get_header_slides(){ global $wpdb; $args = array( 'post_type' => 'slider-image', 'orderby' => 'menu_order', 'post_status' => 'publish', 'posts_per_page' => 30, 'order' => 'ASC' ); $my_query = new WP_Query($args); $toReturn = array(); while ($my_query->have_posts()) { $my_query->the_post(); $meta_data = get_post_meta(get_the_ID(), 'wpcf-header-slider-image', OBJECT); $toReturn[] = array('title' => get_the_title(), 'image' => $meta_data); } return $toReturn;}remove_action('wp_head', 'print_emoji_detection_script', 7);remove_action('wp_print_styles', 'print_emoji_styles');//Register hook to load scriptsadd_action('wp_enqueue_scripts', 'search_engine_load_scripts');//Load scripts (and/or styles)function search_engine_load_scripts(){ if (is_page()) { //Check if we are viewing a page global $wp_query; //Check which template is assigned to current page we are looking at $template_name = get_post_meta($wp_query->post->ID, '_wp_page_template', true); if ($template_name == 'page-search-engine.php') { //wp_enqueue_script('datatables', "//cdn.datatables.net/1.10.16/js/jquery.dataTables.js"); wp_register_style('datatables-css', "https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"); wp_enqueue_script('datatables', "https://cdn.datatables.net/v/dt/jqc-1.12.3/dt-1.10.16/r-2.2.1/datatables.min.js"); // wp_register_style('datatables-css', "https://cdn.datatables.net/v/dt/jqc-1.12.3/dt-1.10.16/r-2.2.1/datatables.min.css"); wp_enqueue_style('datatables-css'); wp_enqueue_script('search-moment', "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"); wp_enqueue_script('datetime', "https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"); // wp_enqueue_script('search-engine', "//www.amlan.fr/testagglopole/search_engine.min.js"); wp_enqueue_script('search-engine', "https://js.elit-sa.com/agglopole_1408/search_engine.min.js"); //wp_enqueue_script('search-engine', get_template_directory_uri() . '/js/search_engine.min.js'); } }}$youtube_channel = 'https://www.youtube.com/channel/UC346duLfI7cy7VYuCbxc-iw';add_filter('tiny_mce_before_init', 'fb_change_mce_options');function fb_change_mce_options($tags){ // Comma separated string od extendes tags // Command separated string of extended elements $ext = 'iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src|id|class|title|style|allow|allowfullscreen]'; if (isset($tags['extended_valid_elements'])) $tags['extended_valid_elements'] .= ',' . $ext; else $tags['extended_valid_elements'] = $ext; return $tags;}add_action('wp_head', 'archipel_css');function archipel_css(){ global $post; if (!isset($post) || !is_object($post)) { return; } if ($post->ID != 16752) { return; } ?> rest_authorization_required_code() ] ); } return $access;});add_action('admin_footer', function(){ ?> '', 'width' => '100%', 'height' => '500px', 'frameborder' => '0', 'allowfullscreen' => 'allowfullscreen', ], $atts ); if ( empty( $atts['src'] ) ) { return ''; } return sprintf( '', esc_attr( $atts['width'] ), esc_attr( $atts['height'] ), esc_attr( $atts['frameborder'] ), esc_url( $atts['src'] ), esc_attr( $atts['allowfullscreen'] ) );} );